import { useNavigation } from '@react-navigation/native';
import { Button, Text, View } from 'react-native';

export default function HomeScreen() {
  const navigation = useNavigation();
  return (
    <View>
      <Text>我是首页11111111111111111111111</Text>
      <Text>我是首页11111111111111111111111</Text>
      <Text>我是首页11111111111111111111111</Text>
      <Button
        title="去到详情页"
        onPress={() => navigation.navigate('DetailsScreen')}
      />
    </View>
  );
}
